5f1fe305bc2fc1cb1a5c103d4c07805c1815cd52,src/com/itmill/toolkit/demo/features/FeatureEmbedded.java,FeatureEmbedded,getDemoComponent,#,41

Before Change


				"source", "width", "height", "widthUnits", "heightUnits",
				"codebase", "codetype", "archive", "mimeType", "standby",
				"classId" });
		ap.replaceWithSelect("type", new Object[] {
				new Integer(Embedded.TYPE_IMAGE),
				new Integer(Embedded.TYPE_OBJECT) }, new Object[] { "Image",
				"Object" });
		Object[] units = new Object[Sizeable.UNIT_SYMBOLS.length];
		Object[] symbols = new Object[Sizeable.UNIT_SYMBOLS.length];
		for (int i = 0; i < units.length; i++) {
			units[i] = new Integer(i);
			symbols[i] = Sizeable.UNIT_SYMBOLS[i];
		}
		ap.replaceWithSelect("heightUnits", units, symbols);
		ap.replaceWithSelect("widthUnits", units, symbols);
		ap.replaceWithSelect("source", new Object[] { null,
				new ClassResource("m-bullet-blue.gif", getApplication()) },
				new Object[] { "null", "IT Mill (m)" });
		propertyPanel.addProperties("Embedded Properties", ap);
		propertyPanel.getField("standby").setDescription(
				"The text to display while loading the object.");
		propertyPanel.getField("codebase").setDescription(
				"root-path used to access resources with relative paths.");
		propertyPanel.getField("codetype").setDescription(

After Change



		// Properties
		propertyPanel = null;
		if (false) {
		propertyPanel = new PropertyPanel(emb);
		Form ap = propertyPanel.createBeanPropertySet(new String[] { "type",
				"source", "width", "height", "widthUnits", "heightUnits",
				"codebase", "codetype", "archive", "mimeType", "standby",
				"classId" });
		ap.replaceWithSelect("type", new Object[] {
				new Integer(Embedded.TYPE_IMAGE),
				new Integer(Embedded.TYPE_OBJECT) }, new Object[] { "Image",
				"Object" });
		Object[] units = new Object[Sizeable.UNIT_SYMBOLS.length];
		Object[] symbols = new Object[Sizeable.UNIT_SYMBOLS.length];
		for (int i = 0; i < units.length; i++) {
			units[i] = new Integer(i);
			symbols[i] = Sizeable.UNIT_SYMBOLS[i];
		}
		ap.replaceWithSelect("heightUnits", units, symbols);
		ap.replaceWithSelect("widthUnits", units, symbols);
		ap.replaceWithSelect("source", new Object[] { null,
				new ClassResource("m-bullet-blue.gif", getApplication()) },
				new Object[] { "null", "IT Mill (m)" });
		propertyPanel.addProperties("Embedded Properties", ap);
		propertyPanel.getField("standby").setDescription(
				"The text to display while loading the object.");
		propertyPanel.getField("codebase").setDescription(
				"root-path used to access resources with relative paths.");
		propertyPanel.getField("codetype").setDescription(